package xing.design.pattern.create.factory.abstractFactory.factory;

import xing.design.pattern.create.factory.Basic1;
import xing.design.pattern.create.factory.IBasic;
import xing.design.pattern.create.factory.abstractFactory.IOtherBasic;
import xing.design.pattern.create.factory.abstractFactory.OtherBasic1;

/**
 * BasicFactory1 类，返回 1 系列的不同的 类。
 *
 * @author xing
 * @date 2023/2/7 23:27:15
 */
public class BasicFactory1 implements IBasicFactory {
    @Override
    public IBasic createBasic() {
        return new Basic1();
    }

    @Override
    public IOtherBasic createOtherBasic() {
        return new OtherBasic1();
    }
}
